<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Bronya
  Date: 2022/11/25
  Time: 12:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8" />
    <title>Read——睁眼看世界</title>
    <link rel="stylesheet" href="/css/home.css">
</head>
<body>
<div class="header">
    <div class="logo"><a href="/tohome"><img src="/images/logo.jpg" alt="本网站Logo"></a></div>
    <div style="position: absolute;left: 1500px; height: 300px;">
        <a href="/tocart"><img src="/images/cart1.png" style="width: 50px"> </a>
    </div>
    <div style="position: absolute;left: 1400px; height: 300px">
        <a href="/tomymanage"><img src="/images/ren1.png" style="width: 50px"> </a>
    </div>
    <div class="search-box">
        <form method="post" action="/selectbooktohome">
            搜索<input name="name">
        </form>
    </div>
</div>
<div class="nav">
    <ul>
        <li><a href="/tohome">主页</a></li>
        <li><a href="/tofinance">金融</a></li>
        <li><a href="/tohuman">人文社科</a></li>
        <li><a href="/tochildren">儿童读物</a></li>
        <li><a href="/tocomputer">计算机</a></li>

    </ul>
</div>
<div>
    <c:forEach items="${books}" var="book">

        <div class="images">
            <div class="img">
                <a href="/tobookdetail?book_id=${book.book_id}"><img src="/images/${book.image}" alt="图书图片"></a>
                <div class="describe">${book.name}(${book.publisher})</div>
                <div style="color: red;font-size: 20px">${book.price}</div>
            </div>
        </div>

    </c:forEach>

</div>
</body>
</html>

